home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
system
/
sysprof3.zip
/
PROFBATS
< prev
next >
Wrap
Text File
|
1989-02-09
|
3KB
|
92 lines
PROFILER BATCH FILES (and other details) --
You can invoke PROFCTRL in any of the following ways:
C> PROFCTRL STATUS
C> PROFCTRL ON
C> PROFCTRL OFF
C> PROFCTRL ZERO
C> PROFCTRL REPORT [output-filename]
Most of the PROFCTRL options correspond closely to the interrupt 60H services.
The output from the REPORT option will default to the printer if you omit the
output filename.
Compiling, linking, and using the system profiler
SYS_PROF was assembled with MASM V5.0, and PROFCTRL was compiled with the
Microsoft C Compiler V5.1. Other versions may work equally well.
The first batch file will create the two executable files.
-----------------------------
MASM SYS_PROF.ASM;
LINK SYS_PROF;
EXE2BIN SYS_PROF.EXE SYS_PROF.COM
CL PROFCTRL /c
LINK PROFCTRL;
Batch file to create SYS_PROF.COM and PROFCTRL.EXE
----------------
The simplest way to use the system profiler is in a batch file; the one shown
in Figure 3 was used to create the report in Figure 1. The installation code
in SYS_PROF prevents multiple copies from remaining resident, so you can
execute this type of batch file repeatedly with no harm.
---------------------
SYS_PROF
PROFCTRL ZERO
PROFCTRL ON
chkdsk c:
PROFCTRL OFF
PROFCTRL REPORT chkdsk.rpt
Batch file used to generate Figure 1
---------------------
graphics
break on
SYS_PROF
PROFCTRL ZERO
PROFCTRL ON
mndlbrot
PROFCTRL OFF
PROFCTRL REPORT break.rep
Batch file used for Example #1
-----------------
graphics
break off
lptx -1 -o d:mndlbrot.out
SYS_PROF
PROFCTRL ZERO
PROFCTRL ON
mndlbrot
lptx -1 -c
copy d:mndlbrot.out a:
PROFCTRL OFF
PROFCTRL REPORT xt.rep
Batch file used for Example #3
-------------------
SYS_PROF
PROFCTRL ZERO
PROFCTRL ON
transfer mndlbrot.out
PROFCTRL OFF
PROFCTRL REPORT transfer.rep
Batch file used for Example #4
-------------------